spec/user.rb in zabbixapi-2.2.0 vs spec/user.rb in zabbixapi-2.2.1
- old
+ new
@@ -19,11 +19,11 @@
context 'when not exists' do
describe 'create' do
it "should return integer id" do
user = gen_name 'user'
userid = zbx.users.create(
- :alias => "Test #{user}",
+ :alias => user,
:name => user,
:surname => user,
:passwd => user,
:usrgrps => [@usergroupid]
)
@@ -31,11 +31,11 @@
end
end
describe 'get_id' do
it "should return nil" do
- zbx.users.get_id(:name => "name_____").should be_nil
+ zbx.users.get_id(:alias => "name_____").should be_nil
end
end
end
context 'when exists' do
@@ -61,10 +61,10 @@
end
end
describe 'get_full_data' do
it "should return string name" do
- zbx.users.get_full_data(:name => @user)[0]['name'].should be_kind_of(String)
+ zbx.users.get_full_data(:alias => @user)[0]['name'].should be_kind_of(String)
end
end
describe 'update' do
it "should return id" do