Sha256: c1bfbe684f2fbe1356ba3be880a5944a5dc3ad997bed5e0fbb162770a3ea909c

Contents?: true

Size: 317 Bytes

Versions: 94

Compression:

Stored size: 317 Bytes

Contents

# -*- coding: utf-8 -*-

require 'tmpdir'

# Rails.envをstandaloneにする
shared_context 'set standalone rails env', set_standalone_rails_env: true do
  before do
    @_rails_env = Rails.env
    Rails.env = ENV['RAILS_ENV'] = 'standalone'
  end

  after do
    Rails.env = ENV['RAILS_ENV'] = @_rails_env
  end
end

Version data entries

94 entries across 94 versions & 1 rubygems

Version Path
smalruby-editor-0.1.11-x86-mingw32 spec/support/env.rb
smalruby-editor-0.1.10-x86-mingw32 spec/support/env.rb
smalruby-editor-0.1.10 spec/support/env.rb
smalruby-editor-0.1.9-x86-mingw32 spec/support/env.rb
smalruby-editor-0.1.9 spec/support/env.rb
smalruby-editor-0.1.8-x86-mingw32 spec/support/env.rb
smalruby-editor-0.1.8 spec/support/env.rb
smalruby-editor-0.1.7-x86-mingw32 spec/support/env.rb
smalruby-editor-0.1.7 spec/support/env.rb
smalruby-editor-0.1.6-x86-mingw32 spec/support/env.rb
smalruby-editor-0.1.6 spec/support/env.rb
smalruby-editor-0.1.5-x86-mingw32 spec/support/env.rb
smalruby-editor-0.1.5 spec/support/env.rb
smalruby-editor-0.1.4-x86-mingw32 spec/support/env.rb
smalruby-editor-0.1.4 spec/support/env.rb
smalruby-editor-0.1.3-x86-mingw32 spec/support/env.rb
smalruby-editor-0.1.3 spec/support/env.rb
smalruby-editor-0.1.2-x86-mingw32 spec/support/env.rb
smalruby-editor-0.1.2 spec/support/env.rb
smalruby-editor-0.1.1-x86-mingw32 spec/support/env.rb