Skip to content

Commit

Permalink
Bump version to 0.2.0 and include supported matchers in README
Browse files Browse the repository at this point in the history
  • Loading branch information
bittrance committed Jan 16, 2017
1 parent 22527a7 commit 007404f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
rx-rspec (0.1.3)
rx-rspec (0.2.0)
rx

GEM
Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@ require 'rx'
require 'rx-rspec'
describe 'awesome' do
subject { Rx::Observable.just(42) }
it { should emit_exactly(42) }
subject { Rx::Observable.of(1, 2, 3) }
it { should emit_exactly(1, 2, 3) }
end
```

## Matchers

rx-spec include the following matchers:

- **emit_exactly()** metches against all items produced by the observable and requires the observable to be completed.
- **emit_first()** matches against the first elements of the observable, but does not require it to complete
- **emit_include()** consumes elements until the expected elements have occurred
2 changes: 1 addition & 1 deletion rx-rspec.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |spec|
spec.name = 'rx-rspec'
spec.version = '0.1.3'
spec.version = '0.2.0'
spec.summary = 'rspec testing support for RxRuby'
spec.description = 'Writing specs for reactive streams is tricky both because of their asynchronous nature and because their next/error/completed semantics. The goal of rx-rspec is to provide powerful matchers that lets you express your expectations in a traditional rspec-like synchronous manner.'
spec.authors = ['Anders Qvist']
Expand Down

0 comments on commit 007404f

Please sign in to comment.