File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 124124
125125 context "to_s/inspect" do
126126 it "returns string representation of internal parameters" do
127- params = described_class . new ( { a : 1 , b : 2 , c : 3 } )
127+ parameters = { a : 1 , b : 2 , c : 3 }
128+ params = described_class . new ( parameters )
128129
129- expect ( params . to_s ) . to eq ( "{:a=>1, :b=>2, :c=>3}" )
130+ expect ( params . to_s ) . to eq ( parameters . to_s )
130131 end
131132
132133 it "returns string representation of the class" do
133- params = described_class . new ( { a : 1 , b : 2 , c : 3 } )
134+ parameters = { a : 1 , b : 2 , c : 3 }
135+ params = described_class . new ( parameters )
134136
135- expect ( params . inspect ) . to eq ( "#<TTY::Option::Params{:a=>1, :b=>2, :c=>3 }>" )
137+ expect ( params . inspect ) . to eq ( "#<TTY::Option::Params#{ parameters } >" )
136138 end
137139 end
138140end
You can’t perform that action at this time.
0 commit comments