Sha256: bc986b12e0df729eaf7f6d7a883b5a364255ef366862f2eff36a172770814ebb
Contents?: true
Size: 833 Bytes
Versions: 6
Compression:
Stored size: 833 Bytes
Contents
Feature: Spec::ExampleGroup with should methods As an RSpec adopter accustomed to classes and methods I want to use should_* methods in an ExampleGroup So that I use RSpec with classes and methods that look more like RSpec examples Scenario Outline: Example Group class with should methods Given a file named "example_group_with_should_methods.rb" with: """ require 'spec/autorun' class MySpec < Spec::ExampleGroup def should_pass_with_should 1.should == 1 end def should_fail_with_should 1.should == 2 end end """ When I run "<Command> example_group_with_should_methods.rb" Then the exit code should be 256 And the stdout should match "2 examples, 1 failure" Scenarios: Run with ruby and spec | Command | | ruby | | spec |
Version data entries
6 entries across 6 versions & 1 rubygems