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