require 'spec_helper'

describe "Clients" do
  before :all do
    load "#{Rails.root}/db/seeds.rb"
  end

  before :each do
    user = FactoryGirl.create(:user)
    user.add_role :admin
    sign_in_user(user)
    visit '/clients'
  end

  it "should show the clients page" do
    page.should have_content "Clients"
  end

  it "should a client name" do
    page.should have_content "i-424242"
  end

  it "should show a client address" do
    page.should have_content "127.0.0.1"
  end

  it "should show subscriptions" do
    page.should have_content "test"
  end

  it "should show a client time" do
    page.should have_content time_ago_in_words(Time.at(1377890282))
  end

end

Update client feature specs to run agains sensu api v0.10.2
Update client feature specs to run agains sensu api v0.10.2
