diff options
Diffstat (limited to 'spec/unit/employee_spec.rb')
| -rw-r--r-- | spec/unit/employee_spec.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/spec/unit/employee_spec.rb b/spec/unit/employee_spec.rb new file mode 100644 index 0000000..8996f5e --- /dev/null +++ b/spec/unit/employee_spec.rb @@ -0,0 +1,24 @@ +require "spec_helper" + +class Employee + def initialize + end + + def issue_grant(value_of_grant, share_price) + end + + def value_of_unvested_grants_at(price) + 0.00 + end +end + +describe Employee do + let(:sut) { Employee.new } + + context "when issued a grant that vests annually" do + it "computes the value of the grant after 6 months" do + sut.issue_grant(80_000, 1.00) + sut.value_of_unvested_grants_at(10.00).should == 0.00 + end + end +end |
