Skip to content

Instantly share code, notes, and snippets.

@lessless
Created October 30, 2012 11:20
Show Gist options
  • Save lessless/3979682 to your computer and use it in GitHub Desktop.
Save lessless/3979682 to your computer and use it in GitHub Desktop.
route not found
#encoding:utf-8
require 'spec_helper'
describe Front::BanksController do
before :all do
@bank = Bank.create!(:name => 'ПУ БАНКА РОССИИ N 10462', :bic => '040009002')
end
it "should perform search by name" do
post 'front/banks/search', :params => { :term => @bank.name }
response.code.should == "200"
binding.pry
end
end
Bank.blueprint do
bic { rand(9) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment