Arthur Neves
fe51b4bcc2
Remove Gemfile_master.lock
2015-04-28 23:25:11 -04:00
Arthur Neves
d2b1cc55b9
Disable raise_in_transactional_callbacks for now
2015-04-28 23:20:08 -04:00
Arthur Neves
338fb6efdd
Test on rails 4.2 and master
2015-04-28 23:20:08 -04:00
Arthur Neves
25e28a1bdd
Add rails42 and remove bundler patch
2015-04-28 23:20:07 -04:00
Arthur Neves
439d0d2e37
Check Rails.version instead of ENV
...
Like that we can have code that works on multiple Rails versions, and we
dont need to mix a new method on Kernel.
Also, this makes easier to have multiple versions.
For instance, before master was 4.2, which is not the case anymore, so
on the code we should check versions and not Environment variables
2015-04-28 22:27:47 -04:00
Arthur Neves
8f0fb511c3
Fix warnings for rspec 3
2015-04-25 21:02:06 -04:00
Arthur Neves
f84541b1ba
Update rspec to rspec 3.2.0
2015-04-25 18:29:43 -04:00
Arthur Neves
e0ea68b9ca
Fix tests on site_setting for new rspec
2015-04-25 11:33:26 -04:00
Arthur Neves
b8cbe51026
Convert specs to RSpec 2.99.2 syntax with Transpec
...
This conversion is done by Transpec 3.1.0 with the following command:
transpec
* 424 conversions
from: obj.should
to: expect(obj).to
* 325 conversions
from: == expected
to: eq(expected)
* 38 conversions
from: obj.should_not
to: expect(obj).not_to
* 15 conversions
from: =~ /pattern/
to: match(/pattern/)
* 9 conversions
from: it { should ... }
to: it { is_expected.to ... }
* 5 conversions
from: lambda { }.should_not
to: expect { }.not_to
* 4 conversions
from: lambda { }.should
to: expect { }.to
* 2 conversions
from: -> { }.should
to: expect { }.to
* 2 conversions
from: -> { }.should_not
to: expect { }.not_to
* 1 conversion
from: === expected
to: be === expected
* 1 conversion
from: =~ [1, 2]
to: match_array([1, 2])
For more details: https://github.com/yujinakayama/transpec#supported-conversions
2015-04-25 11:18:35 -04:00
Arthur Neves
a9b2483277
Bump rails-observers to master version.
...
https://github.com/rails/rails-observers/commit/876c522184a4ed26d564833f496ef1bfa7af654a
Has the patched applied on SamSaffron/rails-observers.
2015-04-24 16:38:48 -04:00
Arthur Neves
94678f977a
Update travis config file
...
A few things in here:
- Test on ruby 2.2
- Allow failures in all variants of RAILS_MASTER test
- Use db:create task
2015-04-24 16:28:27 -04:00
Arthur Neves
e6655e7d7e
Bump rails to latest patch 4.1 release. (4.1.10)
...
We should be using the latest patch release of the current supported
version.
Also this adds a more explicit version of rails on the Gemfile. This is
will help to test on rails 4.2 and master.
2015-04-24 15:36:46 -04:00