Sha256: 22c3014e9272cf1925482c750211dce0871a106c8840e30396bbe1eb5a5937e4
Contents?: true
Size: 607 Bytes
Versions: 2
Compression:
Stored size: 607 Bytes
Contents
require 'spec_helper' require ::File.expand_path("../../../lib/cornucopia/util/report_formatters", File.dirname(__FILE__)) describe Cornucopia::Util::CucumberFormatter do describe "#format_location" do it "formats the passed in object as #file.#line" do file_location = double(:file_location, file: Faker::Lorem.sentence, line: rand(1..500)) expect(Cornucopia::Util::ReportBuilder).to receive(:pretty_format).and_call_original expect(Cornucopia::Util::CucumberFormatter.format_location(file_location)). to eq "#{file_location.file}:#{file_location.line}" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cornucopia-0.1.13 | spec/lib/util/report_formatters_spec.rb |
cornucopia-0.1.12 | spec/lib/util/report_formatters_spec.rb |