Sha256: 58b5bed170ab70092b56ebecee7fd87e25d3d3e027dbaaa78ef1a826f01498bd

Contents?: true

Size: 346 Bytes

Versions: 1

Compression:

Stored size: 346 Bytes

Contents

# frozen_string_literal: true

RSpec.describe 'Add numbers specs' do
  context 'add 1 + 1', add_numbers: true do
    before(:example) do
      @result = 1 + 1
    end

    it 'passes', pass: true do
      expect(@result).to eq 2
    end

    it 'fails due to not being an integer', fail: true do
      expect(@result).to eq '2'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
specimen-0.0.4.alpha lib/specimen/generator/rspec/templates/spec/examples/example_spec.rb.tt