spec/app_spec.rb in schnitzelpress-0.0.11 vs spec/app_spec.rb in schnitzelpress-0.0.12

- old
+ new

@@ -21,12 +21,12 @@ end subject { last_response } it { should be_ok } - its(:body) { should have_tag 'title', text: "A Test Blog" } - its(:body) { should have_tag 'section.posts > article.post.published', count: 5 } + its(:body) { should have_tag 'title', :text => "A Test Blog" } + its(:body) { should have_tag 'section.posts > article.post.published', :count => 5 } its(:body) { should_not have_tag 'section.posts > article.post.draft' } end describe 'the /blog page' do before { get '/blog' } @@ -47,10 +47,10 @@ end describe 'viewing a single post' do context 'when the post has multiple slugs' do before do - @post = Factory(:published_post, published_at: "2011-12-10 12:00", slugs: ['ancient-slug', 'old-slug', 'current-slug']) + @post = Factory(:published_post, :published_at => "2011-12-10 12:00", :slugs => ['ancient-slug', 'old-slug', 'current-slug']) end it 'should enforce the canonical URL' do get "/2011/12/10/ancient-slug/" last_response.should be_redirect