spec/support/loupe_support.rb in museum-0.3.0 vs spec/support/loupe_support.rb in museum-0.5.0
- old
+ new
@@ -1,4 +1,4 @@
shared_context 'loupe support' do
- let!(:rubygems) { FactoryGirl.create(:loupe, :title => 'RubyGems', :uri_template => 'http://www.rubygems.org/api/v1/gems/%{name}.json') }
- let!(:github) { FactoryGirl.create(:loupe, :title => 'GitHub', :uri_template => 'https://api.github.com/repos/%{user}/%{name}') }
+ let!(:rubygems) { Museum::Loupe.find_by_title('RubyGems') }
+ let!(:github) { Museum::Loupe.find_by_title('GitHub') }
end
\ No newline at end of file