Sha256: d71ba9f555c95dd8673d78d64208a45e16818a64e191f709fb6073ed9d4bdd04

Contents?: true

Size: 492 Bytes

Versions: 1

Compression:

Stored size: 492 Bytes

Contents

RSpec.describe Rambo::RSpec::HelperFile do
  let(:template_path) {
    File.expand_path("lib/rspec/templates/matcher_file_template.erb")
  }

  let(:file_path) {
    File.expand_path("spec/support/matchers/rambo_matchers.rb")
  }

  subject { described_class.new(template_path: template_path, file_path: file_path) }

  describe "generate" do
    it "writes the file" do
      expect(File).to receive(:write).with(file_path, File.read(template_path))
      subject.generate
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rambo_ruby-0.1.0 spec/lib/rspec/helper_file_spec.rb