Sha256: faaba38ed80339d245001b14fb435a4a07941c76572ae59ae2d7b2ebb7c32aaf

Contents?: true

Size: 1.09 KB

Versions: 6

Compression:

Stored size: 1.09 KB

Contents

def fixture(filename)
  File.join(YServer::FIXTURE_PATH, filename)
end

Given /^I create a new Client$/ do
  @client.is_a?(Youtrack::Client).should eq(true)
end

Given /^I enter the correct login credentials$/ do
  step "I set the Client#login= to <#{YServer::Login}>"
  step "I set the Client#password= to <#{YServer::Password}>"
end

Given /^I enter incorrect login credentials$/ do
  step "I set the Client#login= to <#{YServer::Lorem}>"
  step "I set the Client#password= to <#{YServer::Lorem}>"
end

Given /^I set the Client url to point to the Server$/ do
  @client.url = YServer::URL
end

Given /^I connect ok$/ do
  @client.connect!
end

Given /^I connect with error$/ do
  @client.connect!
end

Given /^I set the Client#([a-zA-Z_=]+) to <([a-zA-Z0-9_-]+)>$/ do |method, value|
   @client.__send__(method, value)
end

Then /^I should be connected to the Server$/ do
  @client.connected?.should eq(true)
end

Then /^I should receive an error response from the Server$/ do
  @client.connected?.should eq(false)
end

Then(/^I should receive an error Response$/) do
  @client.connected?.should eq(false)
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
youtrack-0.0.8 features/step_definitions/client/client_steps.rb
youtrack-0.0.7 features/step_definitions/client/client_steps.rb
youtrack-0.0.6 features/step_definitions/client/client_steps.rb
youtrack-0.0.5 features/step_definitions/client/client_steps.rb
youtrack-0.0.4 features/step_definitions/client/client_steps.rb
youtrack-0.0.3 features/step_definitions/client/client_steps.rb