Sha256: d589371c99847f60ba9f2e8bf747831150fa6ffa1d5f9d053c94813a3609e873

Contents?: true

Size: 484 Bytes

Versions: 10

Compression:

Stored size: 484 Bytes

Contents

require 'spec_helper'

root_dir = Rails3::Assist::Directory.rails_root

describe 'Rails matcher: have_app_config' do
  use_helpers :directory, :file, :app
  
  before :each do
    create_empty_tmp :config
    Dir.chdir config_dir do
      File.overwrite 'application.rb' do
        %q{
          config.root_dir = MY_ROOT
        }
      end    
    end
  end

  it "should not have initializer :hello" do      
    root_dir.should have_app_config :root_dir => 'MY_ROOT'
  end    
end

Version data entries

10 entries across 10 versions & 1 rubygems

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