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

Version Path
rails-app-spec-0.5.0 spec/rails_app_spec/matchers/directory/have_rails_dirs_spec.rb
rails-app-spec-0.4.0 spec/rails_app_spec/matchers/directory/have_rails_dirs_spec.rb
rails-app-spec-0.3.3 spec/rails_app_spec/matchers/directory/have_rails_dirs_spec.rb