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