Skip to content

Updated examples to use the "expect" RSpec syntax. #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 25, 2015
Merged
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
2 changes: 1 addition & 1 deletion examples/spec/award_bonus_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
:salary => salary
)
plsql.award_bonus(employee[:employee_id], sales_amt)
get_employee(employee[:employee_id])[:salary].should == result
expect(get_employee(employee[:employee_id])[:salary]).to eq result
end
end

Expand Down
8 changes: 4 additions & 4 deletions examples/spec/betwnstr_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@

describe "Between string" do
it "should be correct in normal case" do
plsql.betwnstr('abcdefg', 2, 5).should == 'bcde'
expect(plsql.betwnstr('abcdefg', 2, 5)).to eq 'bcde'
end

it "should be correct with zero start value" do
plsql.betwnstr('abcdefg', 0, 5).should == 'abcde'
expect(plsql.betwnstr('abcdefg', 0, 5)).to eq 'abcde'
end

it "should be correct with way big end value" do
plsql.betwnstr('abcdefg', 5, 500).should == 'efg'
expect(plsql.betwnstr('abcdefg', 5, 500)).to eq 'efg'
end

it "should be correct with NULL string" do
plsql.betwnstr(NULL, 5, 500).should == NULL
expect(plsql.betwnstr(NULL, 5, 500)).to eq NULL
end

end
Expand Down
6 changes: 3 additions & 3 deletions examples/spec/oracle_ebs_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@
end

it "should return user name" do
plsql.fnd_global.user_name.should == @user_name
expect(plsql.fnd_global.user_name).to eq @user_name
end

it "should return responsibility name" do
plsql.fnd_global.resp_name.should == @responsibility_name
expect(plsql.fnd_global.resp_name).to eq @responsibility_name
end

end

end

end
end
2 changes: 1 addition & 1 deletion examples/spec/remove_rooms_by_name_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
it "should remove a room without furniture" do
rooms_without_b = plsql.rooms.all("WHERE name NOT LIKE 'B%'")
plsql.remove_rooms_by_name('B%')
plsql.rooms.all.should == rooms_without_b
expect(plsql.rooms.all).to eq rooms_without_b
end

it "should not remove a room with furniture" do
Expand Down