Sha256: 81912a57aab74d63dc1c563cbd83de1139a04abcb06854510a3c3e9c4851172e
Contents?: true
Size: 991 Bytes
Versions: 10
Compression:
Stored size: 991 Bytes
Contents
require "spec_helper" feature "search snippets" do before do visit "/static_blocks" click_link "New snippet" fill_in "Title", :with => "foo" fill_in "Content", :with => "english bar" click_button "Submit" click_link "List snippets" end scenario "can search default snippets" do fill_in "Content contains", :with => "english bar" click_button "Search" page.should have_content("english bar") end describe "search translated snippets" do before do visit "/static_blocks" click_link "wk" click_link "Edit" fill_in "snippet_content", :with => "wookie bar" click_button "Submit" click_link "List snippets" end scenario "can search translated snippets" do fill_in "Title contains", :with => "foo" fill_in "Content contains", :with => "wookie bar" select('Published', :from => "Status") click_button "Search" page.should have_content("wookie bar") end end end
Version data entries
10 entries across 10 versions & 1 rubygems