Permalink
Browse files

Remove dependency on ActiveSupport::StringInquirer

  • Loading branch information...
1 parent 46d0ca7 commit 8dd0c852ce1db8293ee2cf1382ca4f72cb6c866d @sferik committed Jun 1, 2012
Showing with 0 additions and 39 deletions.
  1. +0 −7 lib/t.rb
  2. +0 −1 spec/helper.rb
  3. +0 −31 spec/t_spec.rb
View
@@ -1,16 +1,9 @@
-require 'active_support/string_inquirer'
require 't/cli'
require 'time'
module T
class << self
- attr_reader :env
-
- def env=(environment)
- @env = ActiveSupport::StringInquirer.new(environment)
- end
-
# Convert time to local time by applying the `utc_offset` setting.
def local_time(time)
utc_offset ? (time.utc + utc_offset) : time.localtime
View
@@ -11,7 +11,6 @@
require 'rspec'
require 'timecop'
require 'webmock/rspec'
-T.env = 'test'
def a_delete(path, endpoint=Twitter.endpoint)
a_request(:delete, endpoint + path)
View
@@ -1,31 +0,0 @@
-# encoding: utf-8
-require 'helper'
-
-describe T do
-
- describe "#env" do
- before do
- T.env = "value"
- end
- after do
- T.env = "test"
- end
- it "returns the value" do
- T.env.should == "value"
- end
- it "is inquirable" do
- T.env.value?.should be_true
- end
- end
-
- describe "#env=" do
- after do
- T.env = "test"
- end
- it "sets the value" do
- T.env = "value"
- T.env.should == "value"
- end
- end
-
-end

0 comments on commit 8dd0c85

Please sign in to comment.