<% end %>
-
+<% end %>
diff --git a/db/migrate/20131011034751_remove_comments.rb b/db/migrate/20131011034751_remove_comments.rb
new file mode 100644
index 0000000..82d04de
--- /dev/null
+++ b/db/migrate/20131011034751_remove_comments.rb
@@ -0,0 +1,5 @@
+class RemoveComments < ActiveRecord::Migration
+ def change
+ drop_table :comments
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 6114a2c..da7487a 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,17 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20131008095946) do
-
- create_table "comments", force: true do |t|
- t.string "content"
- t.string "commenter_name"
- t.integer "concept_progress_id"
- t.datetime "created_at"
- t.datetime "updated_at"
- end
-
- add_index "comments", ["created_at"], name: "index_comments_on_created_at"
+ActiveRecord::Schema.define(version: 20131011034751) do
create_table "concept_progresses", force: true do |t|
t.datetime "created_at"
diff --git a/spec/factories.rb b/spec/factories.rb
index 6449382..4460bba 100644
--- a/spec/factories.rb
+++ b/spec/factories.rb
@@ -50,10 +50,5 @@
enrollment_id 1
level 1
end
-
- factory :comment do
- content "This is why I modified my LT"
- commenter_name "Person Name"
- end
end
diff --git a/spec/features/concept_show_spec.rb b/spec/features/concept_show_spec.rb
index 4b203e6..59e15ba 100644
--- a/spec/features/concept_show_spec.rb
+++ b/spec/features/concept_show_spec.rb
@@ -32,27 +32,6 @@
end
it { should have_content @student.full_name }
-
- it "should not allow level changes without a comment" do
- click_link "Edit"
-
- select "2", from: "level"
-
- click_link "Edit"
-
- page.should have_css('div.fade') #modal form should remain active
- page.should have_content("You must leave a comment.")
- end
-
- it "should allow level changes with a comment" do
- click_link "Edit"
- fill_in "Comment", with: "This is why I changed the level."
- select "2", from: "level"
-
- click_link "Edit"
-
- page.should have_content("This is why I changed the level.")
- end
end
end
diff --git a/spec/models/comment_spec.rb b/spec/models/comment_spec.rb
deleted file mode 100644
index 1894f33..0000000
--- a/spec/models/comment_spec.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-require 'spec_helper'
-
-describe Comment do
- let (:comment) { FactoryGirl.create(:comment) }
-
- subject { comment }
-
- describe "attributes" do
-
- it { should respond_to :content }
- it { should belong_to :concept_progress }
- end
-
- describe "with no content" do
- before {comment.content = nil }
- it { should_not be_valid }
- end
-
- describe "with no commenter name" do
- before { comment.commenter_name = nil }
- it { should_not be_valid }
- end
-end
diff --git a/spec/models/concept_progress_spec.rb b/spec/models/concept_progress_spec.rb
index 4ee84b2..08aef3b 100644
--- a/spec/models/concept_progress_spec.rb
+++ b/spec/models/concept_progress_spec.rb
@@ -11,8 +11,6 @@
it { should belong_to :enrollment }
it { should belong_to :concept}
- it { should have_many :comments }
-
it { should respond_to :enrollment_id }
it { should respond_to :concept_id }