Sha256: 35d9b63e1deca0379486218ac8d0a9a766d9a7310938c4467084496374d57a65
Contents?: true
Size: 647 Bytes
Versions: 3
Compression:
Stored size: 647 Bytes
Contents
require 'spec_helper' root = RailsAssist::Directory.rails_root describe 'Rails matcher: have_gem' do use_helpers :directory, :file before :each do puts "root: #{root_dir}" Dir.chdir root_dir do File.overwrite 'Gemfile' do %q{ gem "cancan" gem "devise", '1.1' } end end end it "should have gem 'cancan'" do root.should have_gem 'cancan' end it "should have gem 'devise' version 1.1" do root.should have_gem 'cancan', '1.1' end it "should not have gem 'devise' version 1" do root.should have_gem 'devise', '1' end end
Version data entries
3 entries across 3 versions & 1 rubygems