Sha256: 75679e9b20a44809c9f33f32748e42484cb4c3ab7c84e5d1b34eb34a0380fd44
Contents?: true
Size: 710 Bytes
Versions: 1
Compression:
Stored size: 710 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper') describe 'controller' do load_helper :controller before :each do create_empty_tmp :controller create_controller :account do %q{ def index end } end end after :each do remove_controller :account end it "should have an account_controller file that contains an AccountController class with an index method inside" do Rails.application.should have_controller :account do |controller_file| controller_file.should have_controller_class :account do |klass| klass.should have_method :index end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
generator-spec-0.5.0 | spec/generator_spec/matchers/rails/controller_matcher_spec.rb |