Permalink
Browse files

fix changed expect syntax in rspec 2.11

  • Loading branch information...
kares committed Aug 4, 2012
1 parent 612d70c commit c630361b41e025fc27c93c31c7f33aa69735a9b1
Showing with 5 additions and 5 deletions.
  1. +5 −5 spec/less/parser_spec.rb
View
@@ -5,7 +5,7 @@
cwd = Pathname(__FILE__).dirname
it "instantiates" do
- expect { Less::Parser.new }.should_not raise_error
+ lambda { Less::Parser.new }.should_not raise_error
end
describe "simple usage" do
@@ -20,11 +20,11 @@
end
it "throws a ParseError if the lesscss is bogus" do
- expect { subject.parse('{^)') }.should raise_error(Less::ParseError, /missing closing `\}`/)
+ lambda { subject.parse('{^)') }.should raise_error(Less::ParseError, /missing closing `\}`/)
end
it "passes exceptions from the less compiler" do
- expect { subject.parse('body { color: @a; }').to_css }.should raise_error(Less::ParseError, /variable @a is undefined/)
+ lambda { subject.parse('body { color: @a; }').to_css }.should raise_error(Less::ParseError, /variable @a is undefined/)
end
describe "when configured with multiple load paths" do
@@ -36,7 +36,7 @@
end
it "passes exceptions from less imported less files" do
- expect { subject.parse('@import "faulty.less";').to_css }.should raise_error(Less::ParseError, /variable @a is undefined/)
+ lambda { subject.parse('@import "faulty.less";').to_css }.should raise_error(Less::ParseError, /variable @a is undefined/)
end
it "will track imported files" do
@@ -76,5 +76,5 @@
@parser.parse('@import "two.less";').to_css.gsub(/\n/,'').strip.should eql ".two { width: 1;}"
end
end
-
+
end

0 comments on commit c630361

Please sign in to comment.