spec/unit/tailor/problem_spec.rb in tailor-1.2.1 vs spec/unit/tailor/problem_spec.rb in tailor-1.3.0
- old
+ new
@@ -1,42 +1,42 @@
-require_relative '../../spec_helper'
+require 'spec_helper'
require 'tailor/problem'
describe Tailor::Problem do
before do
Tailor::Problem.any_instance.stub(:log)
end
let(:lineno) { 10 }
let(:column) { 11 }
- describe "#set_values" do
+ describe '#set_values' do
before do
Tailor::Problem.any_instance.stub(:message)
end
- it "sets self[:type] to the type param" do
- Tailor::Problem.new(:test, lineno, column, "", :b).
+ it 'sets self[:type] to the type param' do
+ Tailor::Problem.new(:test, lineno, column, '', :b).
should include(type: :test)
end
- it "sets self[:line] to the lineno param" do
- Tailor::Problem.new(:test, lineno, column, "", :c).
+ it 'sets self[:line] to the lineno param' do
+ Tailor::Problem.new(:test, lineno, column, '', :c).
should include(line: lineno)
end
- it "sets self[:column] to the column param" do
- Tailor::Problem.new(:test, lineno, column, "", :d).
+ it 'sets self[:column] to the column param' do
+ Tailor::Problem.new(:test, lineno, column, '', :d).
should include(column: column)
end
- it "sets self[:message] to the message param" do
- Tailor::Problem.new(:test, lineno, column, "test", :d).
- should include(message: "test")
+ it 'sets self[:message] to the message param' do
+ Tailor::Problem.new(:test, lineno, column, 'test', :d).
+ should include(message: 'test')
end
- it "sets self[:level] to the level param" do
- Tailor::Problem.new(:test, lineno, column, "test", :d).
+ it 'sets self[:level] to the level param' do
+ Tailor::Problem.new(:test, lineno, column, 'test', :d).
should include(level: :d)
end
end
end