Module: Arfy::RailsFaker

Included in:
Rails
Defined in:
lib/arfy/environment.rb

Instance Method Summary collapse

Instance Method Details

#applicationObject



194
195
196
197
# File 'lib/arfy/environment.rb', line 194

def application
  @fake_application = Environment.new.augment(@fake_application, Arfy::ApplicationFaker)
  @fake_application
end

#envObject



187
188
189
190
191
192
# File 'lib/arfy/environment.rb', line 187

def env
  @fake_env = Environment.new.augment(@fake_env, Arfy::EnvironmentFaker) do
    String.new(ENV['RAILS_ENV'] ||= "development")
  end
  @fake_env
end

#rootObject



183
184
185
# File 'lib/arfy/environment.rb', line 183

def root
  "."
end