Sha256: 3a449f047e6ce8835d9e3b10ba915eb093a38e63613ec72c855e1f3f6eee8c63

Contents?: true

Size: 329 Bytes

Versions: 4

Compression:

Stored size: 329 Bytes

Contents

shared_examples_for "any function" do
  describe "instance method" do
    describe "'f'" do
      it "should return 0 for a large negative number" do
        subject.f(-10000).should == -1
      end
      
      it "should return 1 for a large positivie number" do
        subject.f(10000).should == 1
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
reputation-0.0.5 spec/helpers/functions.rb
reputation-0.0.4 spec/helpers/functions.rb
reputation-0.0.3 spec/helpers/functions.rb
reputation-0.0.2 spec/helpers/functions.rb