Skip to content

Commit

Permalink
Clarify 'things to fix' in README
Browse files Browse the repository at this point in the history
  • Loading branch information
adambeynon committed Oct 20, 2013
1 parent d75d686 commit b4786e8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ Visit the page in any browser and view the console:
## Things to fix

`opal/opal-rspec/fixes.rb` contains a few bug fixes that need to be merged upstream
to opal itself.
to opal itself. In app/rspec we have to stub various rspec files.

In app/rspec we have to stub various rspec files (8 currently). This is why,
and what is needed to fix them:
### Immutable strings

`opal/opal/rspec/fixes.rb` contains two stub methods as those core rspec methods
try to use mutable strings, which are not supported in opal.

### HEREDOCS

Expand Down
10 changes: 10 additions & 0 deletions spec/example_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,16 @@ def some_helper
end
end

describe "expect syntax" do
it "positive expectation" do
expect(100).to eq(100)
end

it "negative expectation" do
expect(100).to_not eq(300)
end
end

describe "Normal errors" do
it "should still work" do
lambda { raise "wtf son" }.should raise_error(Exception)
Expand Down

0 comments on commit b4786e8

Please sign in to comment.