Skip to content

Commit

Permalink
Merge pull request #13 from gocardless/ruby-3.2
Browse files Browse the repository at this point in the history
Add Ruby 2.3 to Travis
  • Loading branch information
greysteil committed Dec 25, 2015
2 parents 930b2a4 + 7da95e8 commit a9de931
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ rvm:
- 2.0
- 2.1
- 2.2
- 2.3.0
- jruby-19mode

script: bundle exec rspec spec
sudo: false

script:
- bundle exec rspec spec
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in business.gemspec
gemspec
4 changes: 2 additions & 2 deletions business.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
spec.name = "business"
spec.version = Business::VERSION
spec.authors = ["Harry Marr"]
spec.email = ["engineering@gocardless.com"]
spec.email = ["developers@gocardless.com"]
spec.summary = %q{Date calculations based on business calendars}
spec.description = %q{Date calculations based on business calendars}
spec.homepage = "https://github.com/gocardless/business"
Expand All @@ -19,5 +19,5 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]

spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "rspec", "~> 3.0"
spec.add_development_dependency "rspec", "~> 3.1"
end
4 changes: 2 additions & 2 deletions spec/calendar_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

context "when given an invalid calendar" do
subject { Business::Calendar.load("invalid-calendar") }
specify { expect{ subject }.to raise_error }
specify { expect { subject }.to raise_error(/No such calendar/) }
end
end

Expand All @@ -78,7 +78,7 @@

context "when given an invalid business day" do
let(:working_days) { %w( Notaday ) }
specify { expect{ subject }.to raise_exception }
specify { expect { subject }.to raise_error(/Invalid day/) }
end

context "when given nil" do
Expand Down

0 comments on commit a9de931

Please sign in to comment.