Skip to content

Commit 5b28e07

Browse files
committed
Merge pull request #22 from pathawks/tests
Update CI Tests
2 parents b716634 + 544ac44 commit 5b28e07

File tree

2 files changed

+15
-6
lines changed

2 files changed

+15
-6
lines changed

.travis.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
11
language: ruby
2+
cache: bundler
3+
sudo: false
24
rvm:
35
- 2.0.0
46
- 1.9.3
57
- 1.9.2
68
- jruby-18mode
79
- jruby-19mode
8-
- rbx-2.1.1
10+
- rbx-2
911
- ruby-head
1012
- jruby-head
1113
- 1.8.7
1214
- ree
15+
matrix:
16+
fast_finish: true
17+
allow_failures:
18+
- rvm: jruby-18mode
19+
- rvm: jruby-19mode
20+
- rvm: jruby-head
1321
compiler:
1422
- clang
1523
- gcc
1624
before_script:
17-
- rake clobber
25+
- bundle update
26+
- bundle exec rake clobber

spec/parser_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
it "should accept options" do
77
lambda {
88
RedCloth.new("test", [:hard_breaks])
9-
}.should_not raise_error(ArgumentError)
9+
}.should_not raise_error
1010
end
1111
end
1212

1313
it "should have a VERSION" do
14-
RedCloth.const_defined?("VERSION").should be_true
15-
RedCloth::VERSION.const_defined?("STRING").should be_true
14+
RedCloth.const_defined?("VERSION").should be_truthy
15+
RedCloth::VERSION.const_defined?("STRING").should be_truthy
1616
end
1717

1818
it "should show the version as a string" do
@@ -21,7 +21,7 @@
2121
end
2222

2323
it "should have EXTENSION_LANGUAGE" do
24-
RedCloth.const_defined?("EXTENSION_LANGUAGE").should be_true
24+
RedCloth.const_defined?("EXTENSION_LANGUAGE").should be_truthy
2525
RedCloth::EXTENSION_LANGUAGE.should_not be_empty
2626
RedCloth::DESCRIPTION.should include(RedCloth::EXTENSION_LANGUAGE)
2727
end

0 commit comments

Comments
 (0)