Sha256: d0af66cda31e514a22b5320aa6d04bddf22f84ae1c7a02953a34ffc18b79581c
Contents?: true
Size: 457 Bytes
Versions: 4
Compression:
Stored size: 457 Bytes
Contents
require 'spec_helper' GemfileUtils = Railsthemes::GemfileUtils describe GemfileUtils do describe '#rails_version' do it 'should return the right version' do gemfile = using_gem_specs :rails => '3.0.1' GemfileUtils.rails_version(gemfile).version.should == '3.0.1' end it 'should return nil if there is no rails present' do gemfile = using_gem_specs GemfileUtils.rails_version(gemfile).should be_nil end end end
Version data entries
4 entries across 4 versions & 1 rubygems