Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Feb 11, 2014
1 parent 2c640c0 commit 49b1b29
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion tests/ruby/test_module/clients/test_client.rb
Expand Up @@ -2,9 +2,11 @@ module Yast
class TestClient
def main
Yast.include "example.rb"
test_plus_five
@test
5
end
end
end

Yast.TestClient.new
Yast.TestClient.new.main
6 changes: 3 additions & 3 deletions tests/ruby/wfm_spec.rb
Expand Up @@ -8,12 +8,12 @@ module Yast
describe WFM do
describe ".CallFunction" do
it "calls yast client via component system returning its value" do
expect(WFM.CallFunction("test_client")).to == 15
expect(WFM.CallFunction("test_client")).to eq 15
end

it "always properly initialize client (BNC#861529)" do
expect(WFM.CallFunction("test_client")).to == 15
expect(WFM.CallFunction("test_client")).to == 15
expect(WFM.CallFunction("test_client")).to eq 15
expect(WFM.CallFunction("test_client")).to eq 15
end
end
end
Expand Down

0 comments on commit 49b1b29

Please sign in to comment.