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

Version Path
rails-app-spec-0.3.2 spec/rails_app_spec/matchers/directory/have_rails_dirs_spec.rb
rails-app-spec-0.3.1 spec/rails_app_spec/matchers/directory/have_rails_dirs_spec.rb
rails-app-spec-0.3.0 spec/rails_app_spec/matchers/directory/have_rails_dirs_spec.rb
rails-app-spec-0.2.16 spec/rails_app_spec/matchers/directory/have_rails_dirs_spec.rb
rails-app-spec-0.2.15 spec/rails_app_spec/matchers/directory/have_rails_dirs_spec.rb
rails-app-spec-0.2.14 spec/rails_app_spec/matchers/directory/have_rails_dirs_spec.rb
rails-app-spec-0.2.13 spec/rails_app_spec/matchers/directory/have_rails_dirs_spec.rb
rails-app-spec-0.2.12 spec/rails_app_spec/matchers/directory/have_rails_dirs_spec.rb
rails-app-spec-0.2.10 spec/rails_app_spec/matchers/directory/have_rails_dirs_spec.rb