spec/gradient_spec.rb in colour-0.4 vs spec/gradient_spec.rb in colour-0.4.0
- old
+ new
@@ -1,11 +1,10 @@
-require File.join(File.dirname(__FILE__), %w[spec_helper])
+require 'spec_helper'
-# All of the colour representations will set @green for the tests to run through
+red = StandardColoursRGB.red
+white = StandardColoursRGB.white
-include StandardColoursRGB
-
describe Gradient do
it "should be initialized with two colours" do
Gradient.new(red, white)
end
@@ -13,7 +12,6 @@
c = Gradient.new(red,white).colour_at(0.5)
c.to_rgb.g.should eql(0.5)
c.to_rgb.b.should eql(0.5)
c.to_rgb.r.should eql(1.0)
end
-
end