Sha256: c32a7baad37f32215a85ad50fd4de8169bcd9fc34efcc93ccfbaa19ef41a0113

Contents?: true

Size: 615 Bytes

Versions: 3

Compression:

Stored size: 615 Bytes

Contents

require 'spec_helper'

root = RailsAssist::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

3 entries across 3 versions & 1 rubygems

Version Path
rails-app-spec-0.5.0 spec/rails_app_spec/matchers/special/have_gems_spec.rb
rails-app-spec-0.4.0 spec/rails_app_spec/matchers/special/have_gems_spec.rb
rails-app-spec-0.3.3 spec/rails_app_spec/matchers/special/have_gems_spec.rb