Skip to content

dnch/example_set

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ExampleSet

It's a Ruby thing, yes?

describe "String#reverse" do
  it "should reverse strings consistently" do
    @example_set = ExampleSet.new
    @example_set.inputs = "foo", "bar", "baz"
    @example_set.outputs = "oof", "rab", "zab"
    @example_set.compare do |input, expected|
      expected.should == input.reverse
    end        
  end
end

More in the spec.

Licence

The One True Licence: BSD.

About

RSpec Helper Widget

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages