2011-09-06 20:01:10 +00:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe Jasmine::Headless::ReportMessage::Spec do
|
|
|
|
subject { spec }
|
|
|
|
|
2011-09-06 20:48:19 +00:00
|
|
|
context 'with filename' do
|
|
|
|
let(:filename) { 'file.js' }
|
|
|
|
let(:spec) { described_class.new("Test", "#{filename}:23") }
|
|
|
|
|
|
|
|
its(:filename) { should == filename }
|
|
|
|
end
|
|
|
|
|
|
|
|
context 'without filename' do
|
|
|
|
let(:filename) { 'file.js' }
|
|
|
|
let(:spec) { described_class.new("Test", "") }
|
|
|
|
|
|
|
|
its(:filename) { should be_nil }
|
|
|
|
end
|
2011-09-06 20:01:10 +00:00
|
|
|
end
|
|
|
|
|