Skip to content

Commit

Permalink
changed context to describe
Browse files Browse the repository at this point in the history
  • Loading branch information
micronix authored Dec 12, 2023
1 parent 5aaddf8 commit 60affec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/models/study_json_record/utils_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
hash = JSON.parse(File.read('spec/support/json_data/study_data_initialize.json'))
json_instance = StudyJsonRecord::ProcessorV2.new(hash)

context '#get_boolean' do
describe '#get_boolean' do
it 'should return boolean value true if the input value is string "y"' do
expect(json_instance.get_boolean("y")).to eq(true)
end
Expand Down Expand Up @@ -38,7 +38,7 @@
end
end

context '#convert_to_date' do
describe '#convert_to_date' do
it 'should return end of year Date if only the year is given' do
expect(json_instance.convert_to_date("2023")).to eq(Date.parse("Sun, 31 Dec 2023"))
end
Expand All @@ -53,7 +53,7 @@
end
end

context '#key_check' do
describe '#key_check' do
it 'returns an empty hash when given nil' do
expect(json_instance.key_check(nil)).to eq({})
end
Expand All @@ -72,4 +72,4 @@
end
end

end
end

0 comments on commit 60affec

Please sign in to comment.