Sha256: e3c5df25182585e724409708b7992268e2ed10a876707f5465d86b4ce73b421c
Contents?: true
Size: 704 Bytes
Versions: 9
Compression:
Stored size: 704 Bytes
Contents
require 'spec_helper' root_dir = Rails3::Assist::Directory.rails_root describe 'Rails matcher: have_rails_dirs' do use_helpers :directory, :app before :each do create_empty_tmp :controller create_empty_tmp :locale end it "should have a rails dirs :locale and :controller" do root_dir.should have_rails_dirs :locale, :controller end it "should not have rails dirs :locale and :model" do root_dir.should_not have_rails_dirs :locale, :model end it "should not have rails dirs :locale and :model - bad array" do root_dir.should_not have_rails_dirs [[:locale, :model]] root_dir.should_not have_rails_dirs [] end end
Version data entries
9 entries across 9 versions & 1 rubygems