refactored specs added capybara gem