diff --git a/bowling.rb b/bowling.rb index 12cc20d..303911f 100644 --- a/bowling.rb +++ b/bowling.rb @@ -4,5 +4,11 @@ def hit(pins) def score 0 - end +end +def category + 2 + end +def title + 2 + end end diff --git a/shippable.yml b/shippable.yml index 6ffef52..1c22105 100644 --- a/shippable.yml +++ b/shippable.yml @@ -1,12 +1,33 @@ language: ruby + + rvm: + #- 2.0.0 + - 2.0.0 + - 2.1.0 - 1.9.3 - - 1.9.2 - - 2.0.0-p353 +# - 2.2 + # - ree + # - jruby-19mode + # - rbx + #- ree + #- ruby-head + #- jruby-head + + env: - CI_REPORTS=shippable/testresults COVERAGE_REPORTS=shippable/codecoverage -notifications: - email: - recipients: - - vidya@shippable.com - - exampletwo@org.com + + +#build_image: shippable/minv2:beta + + +before_install: + - travis_retry 'if [ $i -eq 3 ]; then echo "done"; else foobar$i; fi' + #- source /home/shippable/.rvm/scripts/rvm + #- source ~/.rvm/scripts/rvm && rvm use 1.8.7 + # - rvm use 2.2.0 +# - rvm use jruby + # - rvm use $SHIPPABLE_RUBY || rvm install $SHIPPABLE_RUBY + +#install: bundle install diff --git a/spec/bowling_spec.rb b/spec/bowling_spec.rb index efa8708..49a87e3 100644 --- a/spec/bowling_spec.rb +++ b/spec/bowling_spec.rb @@ -8,3 +8,17 @@ bowling.score.should eq(0) end end +describe Bowling, "#category" do + it "returns the correct category" do + bowling = Bowling.new + 20.times { bowling.hit(0) } + bowling.category.should eql(2) + end +end +describe Bowling, "#title" do + it "returns the correct title" do + bowling = Bowling.new + 20.times { bowling.hit(0) } + bowling.title.should eql(2) + end +end