Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: opal/opal-spec
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 812a9bd30b53
Choose a base ref
...
head repository: opal/opal-spec
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 926a54f6b0c1
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Oct 18, 2013

  1. Add 'Supported notations' to README

    Yutaka HARA committed Oct 18, 2013
    Copy the full SHA
    09853af View commit details
  2. Merge pull request #8 from yhara/add_notations_to_readme

    Add 'Supported notations' to README
    adambeynon committed Oct 18, 2013
    Copy the full SHA
    926a54f View commit details
Showing with 25 additions and 0 deletions.
  1. +25 −0 README.md
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -23,6 +23,31 @@ describe MyClass do
end
```

### Supported notations

````
* describe "foo" do ... end
* it "should foo" do ... end
* before do ... end
* after do ... end
* let(:foo) { ... }
* async # see below
* obj.should == other
* obj.should != other
* obj.should be_nil
* obj.should be_true
* obj.should be_false
* obj.should be_kind_of(klass)
* obj.should eq(other) # compare with :==
* obj.should equal(other) # compare with :equal?
* obj.should raise_error
* obj.should be_empty
* obj.should respond_to(method)
* obj.should_not xxx
```
### Async examples
Examples can be async, and need to be defined as so: