Sha256: 7ca9f252d46ef174cde81105e3fa556981a04e18af5a16ae37881b031b81db68
Contents?: true
Size: 637 Bytes
Versions: 25
Compression:
Stored size: 637 Bytes
Contents
require 'rspec' require 'appmap/rspec' require 'hello' describe Hello, feature_group: 'Saying hello' do before do # Trick appmap-ruby into thinking we're a Rails app. stub_const('Rails', double('rails', version: 'fake.0')) end # The order of these examples is important. The tests check the # appmap for 'says hello', and we want another example to get run # before it. it 'does not say goodbye', feature: 'Speak hello', appmap: true do expect(Hello.new.say_hello).not_to eq('Goodbye!') end it 'says hello', feature: 'Speak hello', appmap: true do expect(Hello.new.say_hello).to eq('Hello!') end end
Version data entries
25 entries across 25 versions & 1 rubygems