Sha256: 0f6987c07ac12403dfaf14bcd3bdfb2ce197476ccc431b60131834abbf7ac7ad

Contents?: true

Size: 502 Bytes

Versions: 13

Compression:

Stored size: 502 Bytes

Contents

RSpec.describe Rambo::RSpec::HelperFile do
  let(:template_path) {
    File.join(RAMBO_ROOT, "rambo/rspec/templates/matcher_file_template.erb")
  }

  let(:file_path) {
    File.join(SPEC_DIR_ROOT, "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

13 entries across 13 versions & 1 rubygems

Version Path
rambo_ruby-0.7.1 spec/lib/rambo/rspec/helper_file_spec.rb
rambo_ruby-0.7.0 spec/lib/rambo/rspec/helper_file_spec.rb
rambo_ruby-0.6.0 spec/lib/rambo/rspec/helper_file_spec.rb
rambo_ruby-0.5.0 spec/lib/rambo/rspec/helper_file_spec.rb
rambo_ruby-0.4.0 spec/lib/rambo/rspec/helper_file_spec.rb
rambo_ruby-0.3.3 spec/lib/rambo/rspec/helper_file_spec.rb
rambo_ruby-0.3.2 spec/lib/rambo/rspec/helper_file_spec.rb
rambo_ruby-0.3.1 spec/lib/rambo/rspec/helper_file_spec.rb
rambo_ruby-0.3.0 spec/lib/rambo/rspec/helper_file_spec.rb
rambo_ruby-0.2.3 spec/lib/rambo/rspec/helper_file_spec.rb
rambo_ruby-0.2.2 spec/lib/rambo/rspec/helper_file_spec.rb
rambo_ruby-0.2.1 spec/lib/rambo/rspec/helper_file_spec.rb
rambo_ruby-0.2.0 spec/lib/rambo/rspec/helper_file_spec.rb