Skip to content

Instantly share code, notes, and snippets.

@HeroicEric
Created September 28, 2011 17:57
Show Gist options
  • Save HeroicEric/1248674 to your computer and use it in GitHub Desktop.
Save HeroicEric/1248674 to your computer and use it in GitHub Desktop.
require 'spec_helper'
describe DomainsController do
render_views
before(:each) do
@domain = Factory.create(:domain)
end
context "#update_keyword_data" do
before(:each) do
@keyword_terms = [
"refurbished toughbooks",
"toughbook repair",
"toughbook touchscreen repair"
]
@keyword_terms.each do |term|
@domain.keywords << Factory.create(:keyword, :term => term)
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment