spec/stroke_styles_spec.rb in prawn-1.0.0.rc1 vs spec/stroke_styles_spec.rb in prawn-1.0.0.rc2
- old
+ new
@@ -10,12 +10,12 @@
it "join_style should be :miter" do
@pdf.join_style.should == :miter
end
- it "dashed? should be false" do
- @pdf.should.not.be.dashed
+ it "dashed? should be_false" do
+ @pdf.should_not be_dashed
end
end
describe "Cap styles" do
before(:each) { create_pdf }
@@ -102,16 +102,16 @@
describe "Dashes" do
before(:each) { create_pdf }
it "should be able to use assignment operator" do
@pdf.dash = 2
- @pdf.should.be.dashed
+ @pdf.should be_dashed
end
describe "setting a dash" do
- it "dashed? should be true" do
+ it "dashed? should be_true" do
@pdf.dash(2)
- @pdf.should.be.dashed
+ @pdf.should be_dashed
end
it "rendered PDF should include a stroked dash" do
@pdf.dash(2)
dashes = PDF::Inspector::Graphics::Dash.analyze(@pdf.render)
dashes.stroke_dash.should == [[2, 2], 0]