fleakr 0.5.2 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,34 +0,0 @@
1
- require File.dirname(__FILE__) + '/../../../test_helper'
2
-
3
- module Fleakr::Api
4
- class ParameterTest < Test::Unit::TestCase
5
-
6
- context "An instance of the Parameter class" do
7
-
8
- should "have a name" do
9
- parameter = Parameter.new('foo')
10
- parameter.name.should == 'foo'
11
- end
12
-
13
- should "know to include it in the signature by default" do
14
- parameter = Parameter.new('foo')
15
- parameter.include_in_signature?.should be(true)
16
- end
17
-
18
- should "know not to include it in the signature" do
19
- parameter = Parameter.new('foo', false)
20
- parameter.include_in_signature?.should be(false)
21
- end
22
-
23
- should "be able to compare itself to another parameter instance" do
24
- p1 = Parameter.new('z', 'a')
25
- p2 = Parameter.new('a', 'z')
26
-
27
- (p1 <=> p2).should == 1
28
- end
29
-
30
-
31
- end
32
-
33
- end
34
- end