Sha256: 8831d93054fa7228585f02f5ac4d24d3dbafc85d0689facd5be9cbe609273762
Contents?: true
Size: 1.16 KB
Versions: 3
Compression:
Stored size: 1.16 KB
Contents
require 'spec_helper' root_dir = Rails3::Assist::Directory.rails_root describe 'controller' do use_helpers :controller, :app before :each do create_empty_tmp :controller create_controller :account do %q{ def index end } end end after :each do remove_controllers :account, :person end # it "should not have :controller artifact :person" do # root_dir.should_not have_artifact :person, :controller # end # # it "should have an account_controller file that contains an AccountController class with an index method inside" do # root_dir.should have_artifact :account, :controller do |content| # content.should have_method :index # end # # create_controller :person do # %q{ # def index # end # } # end # # root_dir.should have_artifacts :controller, :account, :person # root_dir.should have_artifacts :controller, [:account, :person] # end it "should not have :controller artifacts :account and :user" do root_dir.should_not have_artifacts :controller, [:account, :user] end end
Version data entries
3 entries across 3 versions & 1 rubygems