Sha256: 840ee182646c9c8d900f8c486502a8ea70d51f3884ab83dfb9c6a880f46fe57f
Contents?: true
Size: 936 Bytes
Versions: 11
Compression:
Stored size: 936 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 'rspec/autorun' require 'rspec/expectations' Rspec::Core::ExampleGroup.send(:include, Rspec::Matchers) class MySpec < Rspec::Core::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
11 entries across 11 versions & 1 rubygems