Sha256: 2fef35ef2c1044f81d5492e609357538058c321416a8403046191dfb6831d360

Contents?: true

Size: 393 Bytes

Versions: 4

Compression:

Stored size: 393 Bytes

Contents

require "spec_helper"

RSpec.describe "bulldozer:json", type: :generator do
  it "generates the Gemfile for JSON parsing" do
    with_app { generate("bulldozer:json") }

    expect("Gemfile").to match_contents(%r{gem .oj.})
  end

  it "cleans up the Gemfile from JSON parsing" do
    with_app { destroy("bulldozer:json") }

    expect("Gemfile").not_to match_contents(%r{gem .oj.})
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bulldozer-1.6.3 spec/features/json_spec.rb
bulldozer-1.6.2 spec/features/json_spec.rb
bulldozer-1.6.1 spec/features/json_spec.rb
bulldozer-1.6.0 spec/features/json_spec.rb