File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ module API
6
6
class Project
7
7
attr_reader :name , :directory
8
8
9
- def initialize ( name , directory : Pathname ( File . join ( Dir . pwd , name ) ) )
9
+ def initialize ( name , directory : Pathname . pwd . join ( name ) )
10
10
self . name = name
11
11
self . directory = directory
12
12
end
Original file line number Diff line number Diff line change @@ -22,11 +22,11 @@ def add
22
22
end
23
23
24
24
def tables_directory
25
- Pathname ( File . join ( project . vectors_directory , "tables" ) )
25
+ project . vectors_directory . join ( "tables" )
26
26
end
27
27
28
28
def routines_directory
29
- Pathname ( File . join ( project . vectors_directory , "routines" ) )
29
+ project . vectors_directory . join ( "routines" )
30
30
end
31
31
32
32
private
Original file line number Diff line number Diff line change 27
27
context "with directory" do
28
28
subject ( :project ) { described_class . new ( name , directory : directory ) }
29
29
30
- let ( :directory ) { Pathname ( File . join ( Dir . pwd , "supplied_directory" ) ) }
30
+ let ( :directory ) { Pathname . pwd . join ( "supplied_directory" ) }
31
31
32
32
it { is_expected . to have_attributes ( directory : directory ) }
33
33
end
You can’t perform that action at this time.
0 commit comments