summaryrefslogtreecommitdiff
path: root/spec/views
diff options
context:
space:
mode:
Diffstat (limited to 'spec/views')
-rw-r--r--spec/views/v1/licenses/show.json.jbuilder_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/views/v1/licenses/show.json.jbuilder_spec.rb b/spec/views/v1/licenses/show.json.jbuilder_spec.rb
index 576c1bb..db8730f 100644
--- a/spec/views/v1/licenses/show.json.jbuilder_spec.rb
+++ b/spec/views/v1/licenses/show.json.jbuilder_spec.rb
@@ -2,7 +2,7 @@ require "spec_helper"
describe 'v1/licenses/show' do
let(:company) { Company.new(name: 'ABC Resources Ltd.') }
- let(:user) { User.new(company: company) }
+ let(:user) { User.new(first_name: 'john', last_name: 'dielwart', company: company) }
let(:location) { Location.new(latitude: 51.06, longitude: -114.09, township: '1') }
let(:well_type) { WellType::DEV }
@@ -27,6 +27,7 @@ describe 'v1/licenses/show' do
it "includes the company information" do
result["company"]["name"].should == public_license.company.name
+ result["company"]["applicant_name"].should == user.full_name
end
it "includes information on the type of well" do
@@ -53,7 +54,7 @@ describe 'v1/licenses/show' do
let(:result) { JSON.parse(rendered) }
it "should hide the name of the applicant" do
-
+ result["company"]["applicant_name"].should == "CONFIDENTIAL"
end
it "should hide the type of well" do