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.4.1-x86-mingw32 spec/support/env.rb
smalruby-editor-0.4.2-x86-mingw32 spec/support/env.rb
smalruby-editor-0.4.2 spec/support/env.rb
smalruby-editor-0.4.1 spec/support/env.rb
smalruby-editor-0.4.0-x86-mingw32 spec/support/env.rb
smalruby-editor-0.4.0 spec/support/env.rb
smalruby-editor-0.3.5-x86-mingw32 spec/support/env.rb
smalruby-editor-0.3.5 spec/support/env.rb
smalruby-editor-0.3.4-x86-mingw32 spec/support/env.rb
smalruby-editor-0.3.4 spec/support/env.rb
smalruby-editor-0.3.3-x86-mingw32 spec/support/env.rb
smalruby-editor-0.3.3 spec/support/env.rb
smalruby-editor-0.3.2-x86-mingw32 spec/support/env.rb
smalruby-editor-0.3.2 spec/support/env.rb
smalruby-editor-0.3.1-x86-mingw32 spec/support/env.rb
smalruby-editor-0.3.1 spec/support/env.rb
smalruby-editor-0.3.0-x86-mingw32 spec/support/env.rb
smalruby-editor-0.3.0 spec/support/env.rb
smalruby-editor-0.2.7-x86-mingw32 spec/support/env.rb
smalruby-editor-0.2.7 spec/support/env.rb