spec/article_spec.rb in reviewed-0.1.26 vs spec/article_spec.rb in reviewed-0.1.27
- old
+ new
@@ -6,11 +6,11 @@
let(:client) do
Reviewed::Client.new(api_key: TEST_KEY, base_uri: TEST_URL)
end
before(:each) do
- @article = client.articles.find('big-green-egg-medium-charcoal-grill-review')
+ @article = client.articles.find('big-green-egg-medium-charcoal-grill-review', { with_attachments: true })
end
describe 'associations' do
describe 'pages' do
@@ -51,10 +51,10 @@
attachment.should be_an_instance_of(Reviewed::Attachment)
end
end
it 'finds attachments by tag' do
- attachments = @article.attachments('hero')
+ attachments = @article.attachments('old-hero')
attachments.length.should == 1
attachments.each do |attachment|
attachment.tags.join(',').should match(/hero/i)
end
end