update gemfile

This commit is contained in:
Eliott Appleford 2014-07-05 02:19:51 +01:00
parent e2e3c1e3fb
commit 5897c4c4a4
2 changed files with 29 additions and 31 deletions

46
Gemfile
View file

@ -1,39 +1,37 @@
source 'https://rubygems.org' source 'https://rubygems.org'
# Build and doc tools # Build and doc tools
gem 'rake', '~> 10.0.3', require: false gem 'rake', '~> 10.3', require: false
gem 'yard', '~> 0.8.0', require: false gem 'yard', '~> 0.8', require: false
# Test tools # Test tools
gem 'cucumber', '~> 1.3.1' gem 'pry', '~> 0.10', group: :development
gem 'fivemat', '~> 1.2.1' gem 'aruba', '~> 0.6'
gem 'aruba', '~> 0.5.1' gem 'rspec', '~> 3.0'
gem 'rspec', '~> 2.12' gem 'fivemat', '~> 1.3'
gem 'simplecov' gem 'cucumber', '~> 1.3'
# Optional middleman dependencies, included for tests # Optional middleman dependencies, included for tests
gem 'sinatra', require: false gem 'less', '2.3.0', require: false
gem 'slim', require: false gem 'slim', '~> 2.0', require: false
gem 'liquid', require: false gem 'liquid', '~> 2.6', require: false
gem 'less', '~> 2.3.0', require: false gem 'stylus', '~> 1.0', require: false
gem 'stylus', require: false gem 'sinatra','~> 1.4', require: false
gem 'redcarpet', '~> 3.1', require: false gem 'asciidoctor', '~> 0.1', require: false
gem 'asciidoctor', require: false
platforms :ruby do # For less, since it doesn't use ExecJS (which also means less wont work on windows)
gem 'therubyracer' gem 'therubyracer', platforms: :ruby
gem 'pry', require: false, group: :development gem 'therubyrhino', platforms: :jruby
end
platforms :jruby do # Redcarpet doesn't work on JRuby
gem 'therubyrhino' gem 'redcarpet', '~> 3.1', require: false unless RUBY_ENGINE == 'jruby'
end
# Code Quality # Code Quality
gem 'coveralls', require: false gem 'rubocop', '~> 0.24', require: false
gem 'rubocop', require: false gem 'simplecov', '0.7.1', require: false
gem 'coveralls', '~> 0.7', require: false
# Middleman itself # Middleman itself
gem 'middleman', path: 'middleman'
gem 'middleman-core', path: 'middleman-core' gem 'middleman-core', path: 'middleman-core'
gem 'middleman-sprockets', github: 'middleman/middleman-sprockets' gem 'middleman-sprockets', github: 'middleman/middleman-sprockets'
gem 'middleman', path: 'middleman'

View file

@ -68,29 +68,29 @@ When /^I go to "([^\"]*)"$/ do |url|
end end
Then /^going to "([^\"]*)" should not raise an exception$/ do |url| Then /^going to "([^\"]*)" should not raise an exception$/ do |url|
lambda { @browser.get(URI.escape(url)) }.should_not raise_exception expect(lambda { @browser.get(URI.escape(url)) }).to_not raise_exception
end end
Then /^the content type should be "([^\"]*)"$/ do |expected| Then /^the content type should be "([^\"]*)"$/ do |expected|
@browser.last_response.content_type.should start_with(expected) expect(@browser.last_response.content_type).to start_with(expected)
end end
Then /^I should see "([^\"]*)"$/ do |expected| Then /^I should see "([^\"]*)"$/ do |expected|
@browser.last_response.body.should include(expected) expect(@browser.last_response.body).to include(expected)
end end
Then /^I should see '([^\']*)'$/ do |expected| Then /^I should see '([^\']*)'$/ do |expected|
@browser.last_response.body.should include(expected) expect(@browser.last_response.body).to include(expected)
end end
Then /^I should see:$/ do |expected| Then /^I should see:$/ do |expected|
@browser.last_response.body.should include(expected) expect(@browser.last_response.body).to include(expected)
end end
Then /^I should not see "([^\"]*)"$/ do |expected| Then /^I should not see "([^\"]*)"$/ do |expected|
@browser.last_response.body.should_not include(expected) expect(@browser.last_response.body).to_not include(expected)
end end
Then /^I should see "([^\"]*)" lines$/ do |lines| Then /^I should see "([^\"]*)" lines$/ do |lines|
@browser.last_response.body.chomp.split($/).length.should == lines.to_i expect(@browser.last_response.body.chomp.split($/).length).to eq(lines.to_i)
end end