Sha256: 6ea6c66977cbc1fa9613c88b3375fb72cd1e828ccf4c912256143f5135b99598

Contents?: true

Size: 826 Bytes

Versions: 9

Compression:

Stored size: 826 Bytes

Contents

require 'spec_helper'
require 'capybara/rspec'

describe "capaybara rails does not overwrite the feature command" do
  feature '../test2.feature' do
    step "that :first + :second is calculated" do |first, second|
      @first = first
      @second = second
    end

    step "my result is :result" do |result|
      expect(@first.to_i + @second.to_i - 1).to eq(result.to_i)
    end
  end
end

describe "turnip doesn't overwrite the type", type: :parent_group do
  feature '../test2.feature' do
    step "that :first + :second is calculated" do |first, second|
      metadata_type = RSpec.current_example.example_group.metadata[:type]

      puts "feature metadata type is preserved as #{metadata_type}"

      expect(metadata_type).to eq(:parent_group)
    end

    step "my result is :result" do |result|
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rutabaga-3.0.0 examples/compatibility/compatibility_spec.rb
rutabaga-2.1.6 examples/compatibility/compatibility_spec.rb
rutabaga-2.1.5 examples/compatibility/compatibility_spec.rb
rutabaga-2.1.4 examples/compatibility/compatibility_spec.rb
rutabaga-2.1.3 examples/compatibility/compatibility_spec.rb
rutabaga-2.1.2 examples/compatibility/compatibility_spec.rb
rutabaga-2.1.1 examples/compatibility/compatibility_spec.rb
rutabaga-2.0.2 examples/compatibility/compatibility_spec.rb
rutabaga-2.0.1 examples/compatibility/compatibility_spec.rb