Sha256: 29cef031747d8bb7be7517ede128be6b9b1c1dcd11d908df38e6157bc06164f4

Contents?: true

Size: 618 Bytes

Versions: 10

Compression:

Stored size: 618 Bytes

Contents

require 'spec_helper'

root = Rails3::Assist::Directory.rails_root

describe 'Rails matcher: have_gems' do
  use_helpers :directory, :file
  
  before :each do
    Dir.chdir root_dir do
      File.overwrite 'Gemfile' do
        %q{
          gem "cancan"
          gem "devise", '1.1'
          gem "roles"
        }
      end    
    end
  end

  it "should have gems 'cancan', 'devise', 'roles'" do      
    root.should have_gems 'cancan', 'devise', 'roles'
  end    

  it "should not have gems 'cancan', 'devise', 'roles_are_us'" do      
    root.should have_gems 'cancan', 'devise', 'roles_are_us'
  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_gems_spec.rb
rails-app-spec-0.3.1 spec/rails_app_spec/matchers/special/have_gems_spec.rb
rails-app-spec-0.3.0 spec/rails_app_spec/matchers/special/have_gems_spec.rb
rails-app-spec-0.2.16 spec/rails_app_spec/matchers/special/have_gems_spec.rb
rails-app-spec-0.2.15 spec/rails_app_spec/matchers/special/have_gems_spec.rb
rails-app-spec-0.2.14 spec/rails_app_spec/matchers/special/have_gems_spec.rb
rails-app-spec-0.2.13 spec/rails_app_spec/matchers/special/have_gems_spec.rb
rails-app-spec-0.2.12 spec/rails_app_spec/matchers/special/have_gems_spec.rb
rails-app-spec-0.2.10 spec/rails_app_spec/matchers/special/have_gems_spec.rb
rails-app-spec-0.2.8 spec/rails_app_spec/matchers/special/have_gems_spec.rb