Skip to content

Instantly share code, notes, and snippets.

@cyx
Created February 12, 2010 09:57
Show Gist options
  • Select an option

  • Save cyx/302445 to your computer and use it in GitHub Desktop.

Select an option

Save cyx/302445 to your computer and use it in GitHub Desktop.
describe "searching with an empty query" do
before(:each) { get :show, :q => '' }
it { response.should be_redirect }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment