Sha256: 223eee841b5604043fa8ef3c373e7fa71da27638fbef73fbc7264607218990a1
Contents?: true
Size: 721 Bytes
Versions: 32
Compression:
Stored size: 721 Bytes
Contents
Feature: spec helper In order to centralize code needed across most specs As a spec author I want to require 'spec_helper' Because rspec adds the PROJECT_ROOT/spec directory to the load path, we can just require 'spec_helper' and it will be found. Scenario: spec helper Given a directory named "spec" And a file named "spec/spec_helper.rb" with: """ SOME_CONSTANT = 'some value' """ And a file named "example.rb" with: """ require 'spec_helper' describe SOME_CONSTANT do it { should == 'some value' } end """ When I run "spec example.rb" And the stdout should include "1 example, 0 failures" And the exit code should be 0
Version data entries
32 entries across 32 versions & 11 rubygems