spec/acfs/resource/loadable_spec.rb in acfs-1.6.0 vs spec/acfs/resource/loadable_spec.rb in acfs-1.7.0

- old
+ new

@@ -2,21 +2,23 @@ require 'spec_helper' describe Acfs::Resource::Loadable do let(:model) { MyUser.find 1 } + before do stub_request(:get, 'http://users.example.org/users/1') .to_return response id: 1, name: 'Anon', age: 12 end describe '#loaded?' do context 'before Acfs#run' do - it { expect(model).to_not be_loaded } + it { expect(model).not_to be_loaded } end context 'afer Acfs#run' do before { model && Acfs.run } + it { expect(model).to be_loaded } end end end