Sha256: 1fa10d07836edf89171ae6a173b21ff766449d55eae093491d3a025edcab406b
Contents?: true
Size: 701 Bytes
Versions: 3
Compression:
Stored size: 701 Bytes
Contents
require 'spec_helper' root_dir = RailsAssist::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
3 entries across 3 versions & 1 rubygems