diff --git a/spec/variable.rb b/spec/variable.rb new file mode 100644 index 0000000..0cf11b3 --- /dev/null +++ b/spec/variable.rb @@ -0,0 +1 @@ +greeting = "Hello World" \ No newline at end of file diff --git a/spec/variable_spec.rb b/spec/variable_spec.rb index ab66936..fadf896 100644 --- a/spec/variable_spec.rb +++ b/spec/variable_spec.rb @@ -2,6 +2,7 @@ describe "./variable.rb" do it "defined a local variable called greeting and set it equal to 'Hello World'" do + greeting = "Hello World" greeting = get_variable_from_file('./variable.rb', "greeting") expect(greeting).to eq("Hello World") diff --git a/variable.rb b/variable.rb index 12b0726..c0090ea 100644 --- a/variable.rb +++ b/variable.rb @@ -1,2 +1,3 @@ # Define a local variable called 'greeting', # give it the value of the string "Hello World" +greeting = "Hello World" \ No newline at end of file