spec/acfs_spec.rb in acfs-0.9.0 vs spec/acfs_spec.rb in acfs-0.10.0

- old
+ new

@@ -26,11 +26,11 @@ it 'should update single resource synchronously' do stub = stub_request(:put, "http://users.example.org/users/2") .to_return { |request| { body: request.body, headers: {'Content-Type' => request.headers['Content-Type']}} } - @user = MyUser.find(2) + @user = MyUser.find 2 Acfs.run expect(@user).to_not be_changed expect(@user).to be_persisted @@ -131,9 +131,10 @@ expect(@friends).to have(1).items end it 'should load associated resources from different service' do @user = MyUser.find 2 do |user| + expect(user.id).to be == 2 @comments = Comment.where user: user.id end Acfs.run