Skip to content

Commit

Permalink
Lazily eval rspec Resources @resources_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoody committed Feb 9, 2015
1 parent b3b8595 commit 680cb61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calabash-cucumber/spec/resources.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def current_xcode_version
end

def resources_dir
@resources_dir = File.expand_path(File.join(File.dirname(__FILE__), 'resources'))
@resources_dir ||= File.expand_path(File.join(File.dirname(__FILE__), 'resources'))
end

def app_bundle_path(bundle_name)
Expand Down

0 comments on commit 680cb61

Please sign in to comment.