Skip to content
Open

Done #196

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions spec/variable_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# Code your solution in variable.rb
describe "./variable.rb" do
require_relative '../variable.rb'

it "defined a local variable called greeting and set it equal to 'Hello World'" do
greeting = get_variable_from_file('./variable.rb', "greeting")

expect(greeting).to eq("Hello World")
end

RSpec.configure do |config|
config.order = 'default'
end
end
2 changes: 2 additions & 0 deletions variable.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Define a local variable called 'greeting',
# give it the value of the string "Hello World"

greeting = "hello world"