fedux_org-stdlib 0.0.36 → 0.0.37

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@ module FeduxOrg
5
5
  class Plan
6
6
  attr_reader :file
7
7
 
8
- def initialize(file = File.expand_path( '../plan.tjp', __FILE__ ) )
8
+ def initialize(file = File.join( Dir.getwd, 'plan.tjp' ) )
9
9
  @file = file
10
10
  end
11
11
  end
@@ -1,6 +1,6 @@
1
1
  #main FeduxOrg
2
2
  module FeduxOrg
3
3
  module Stdlib
4
- VERSION = '0.0.36'
4
+ VERSION = '0.0.37'
5
5
  end
6
6
  end
@@ -2,4 +2,12 @@ require 'spec_helper'
2
2
  require 'fedux_org/stdlib/project/plan'
3
3
 
4
4
  describe FeduxOrg::Stdlib::Project::Plan do
5
+ context '#file' do
6
+ it 'uses the working directory by default to find plan' do
7
+ switch_to_working_directory do
8
+ plan = FeduxOrg::Stdlib::Project::Plan.new
9
+ expect( plan.file ).to eq( File.join( Dir.getwd , 'plan.tjp' ) )
10
+ end
11
+ end
12
+ end
5
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fedux_org-stdlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.36
4
+ version: 0.0.37
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: