Skip to content

Commit

Permalink
Fix problem with File I/O tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dropofwill committed May 12, 2015
1 parent 2409971 commit 61b5ca1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/rtasklib/taskrc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def initialize rc, type=:array
hash_to_model(rc)
when :path
if path_exist?(rc)
mappable_to_model(File.open(rc))
mappable_to_model(File.open(rc).readlines)
else
raise RuntimeError.new("rc path does not exist on the file system")
end
Expand Down
8 changes: 4 additions & 4 deletions spec/rtasklib_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
end

describe Rtasklib::TaskWarrior do
describe "Rtasklib::TaskWarrior.new('spec/data/.taskrc')" do
subject{ Rtasklib::TaskWarrior.new('spec/data/.taskrc') }
describe "Rtasklib::TaskWarrior.new('spec/data/.task')" do
subject{ Rtasklib::TaskWarrior.new('spec/data/.task') }
it 'has a version number' do
expect(subject.version.class).to eq Gem::Version
end
Expand All @@ -16,8 +16,8 @@
end
end

describe "Rtasklib::TaskWarrior.new('spec/data/.taskrc', {color: off})" do
subject{ Rtasklib::TaskWarrior.new('spec/data/.taskrc', {verbose: 'on'}) }
describe "Rtasklib::TaskWarrior.new('spec/data/.task', {color: off})" do
subject{ Rtasklib::TaskWarrior.new('spec/data/.task', {verbose: 'on'}) }
it 'updates the default configuration override' do
end
end
Expand Down

0 comments on commit 61b5ca1

Please sign in to comment.