spec/acfs/resource/dirty_spec.rb in acfs-1.7.0 vs spec/acfs/resource/dirty_spec.rb in acfs-2.0.0
- old
+ new
@@ -11,10 +11,10 @@
stub_request(:post, 'http://users.example.org/users')
.to_return response id: 5, name: 'dhh', age: 12
end
it 'includes ActiveModel::Dirty' do
- model.is_a? ActiveModel::Dirty
+ expect(model).to be_a ActiveModel::Dirty
end
describe '#changed?' do
context 'after attribute change' do
let(:user) { MyUser.new name: 'dhh' }