fleakr 0.5.2 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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