diaspora/features/step_definitions/post_preview_steps.rb
2013-08-06 20:48:27 +02:00

9 lines
293 B
Ruby

Then /^the first post should be a preview$/ do
find(".post_preview .post-content").text.should == first_post_text
end
Then /^the preview should not be collapsed$/ do
find(".post_preview").should_not have_selector('.collapsed')
find(".post_preview").should have_selector('.opened')
end