summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-02-21 22:59:41 -0700
committermo khan <mo@mokhan.ca>2014-02-21 22:59:41 -0700
commitdcb8cddfc3adeb3be6885c00933f1354d3d1e576 (patch)
tree08cc870ab382a186f1c34052fed4e66dac20aba8 /spec
parent33cb4e479decb1f7e15048b8c81924fe7498aec1 (diff)
rename method and use relation to create new license.
Diffstat (limited to 'spec')
-rw-r--r--spec/models/user_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index 02e52be..4db73fd 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -1,13 +1,13 @@
require "spec_helper"
describe User do
- describe "#apply_for" do
+ describe "#apply_for_license" do
context "when applying for a license" do
it "creates a new license" do
company = Company.create(name: 'ABC Resources Ltd.')
user = User.create(company: company)
location = Location.new(latitude: 51.06, longitude: -114.09, township: '1')
- license = user.apply_for(WellType::NFW, location)
+ license = user.apply_for_license(WellType::NFW, location)
license.company.should == user.company
license.well_type.should == WellType::NFW