\ No newline at end of file
diff --git a/app/views/comments/_form.html.erb b/app/views/comments/_form.html.erb
index afb9c82..508a744 100644
--- a/app/views/comments/_form.html.erb
+++ b/app/views/comments/_form.html.erb
@@ -3,11 +3,14 @@
<%= form_for(@comment) do |f| %>
<% if @comment.errors.any? %>
-
<%= pluralize(@comment.errors.count, "error") %> prohibited this comment from being saved:
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 4a561b2..b019966 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -21,27 +21,62 @@
en:
hello: "Hello world"
+
post:
- latest_post: "Latest Post"#pendiente de revisar
- tag: "Tags"
- title: "title"
- body_markdown: "body_markdown"
+ # home
+ welcome: "Welcome to RubyGameDev.com, the community-driven, information hub which helps others to build games in Ruby! First time here? "
+ latest_post: "Latest Post" # pendiente de revisar
+ submitted: "Submitted by "
+ _on: "on"
+
edit_post: "Editing Post"
result: "No result found"
+
+ # new post
new_post: "New Post"
- welcome: "Welcome to RubyGameDev.com, the community-driven, information hub which helps others to build games in Ruby! First time here? "
+ error_explanation: "prohibited this post from being saved:"
+ title: "title"
+ body_markdown: "body_markdown"
+ tag: "Tags"
+ submit_value: "Create Post"
+
+ #show post
+ posted_by: "Posted by:"
+ destroy: "Destroy"
+ confirm: "Are you sure?"
+ edit: "Edit"
+ comments: "Comments"
+
comment:
add_comment: "Add Comment"
discussion: "to participate in the discussion!"
create_account: "Create an Account"
+
digest_email:
digest: "Digest Email"
subscribe: "You are signed up to receive"
+ end: " digest emails."
daily: " Daily"
weekly: " Weekly"
monthly: " Monthly"
email_example: "email@example.com"
- subscribe_email: "Subscribe"
+ subscribe_button: "Subscribe"
+ sign_up: Sign up for an email digest so you never miss a thing!
+
social_network:
github: "Help Out on GitHub"
- twitter: "Follow %{count}"
\ No newline at end of file
+ twitter: "Follow %{count}"
+
+ votes:
+ votes: "votes"
+
+ tags:
+ tags_list: "Tags List"
+ tags_for: "Post List For"
+ tag: "Tag"
+
+ user:
+ my_account: "My Account"
+ disply_name: "Display name"
+ email: "Email"
+ submit_button_save: "Save"
\ No newline at end of file
diff --git a/config/routes.rb b/config/routes.rb
index a7058da..7b66095 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -3,28 +3,24 @@
get '/auth/failure', to: 'sessions#auth_failure'
root 'pages#home'
+
+ resources :users, only: [:create, :edit, :update]
+ get '/account' => 'users#edit_current_user', as: :account
- scope "/locate" do
- get '/locate' => 'pages#home'
-
- resources :users, only: [:create, :edit, :update]
- get '/account' => 'users#edit_current_user', as: :account
-
- resources :posts do
- member do
- put :vote
- end
+ resources :posts do
+ member do
+ put :vote
end
+ end
- resources :comments
- resources :tags
+ resources :comments
+ resources :tags
- resources :libraries
- resources :library_categories
+ resources :libraries
+ resources :library_categories
- get 'about' => 'pages#about', as: :about_page
+ get 'about' => 'pages#about', as: :about_page
- # Short Links
- get ':id' => 'short_links#post', as: :post_short_link, constraints: { id: /\d+/ }
- end
-end
+ # Short Links
+ get ':id' => 'short_links#post', as: :post_short_link, constraints: { id: /\d+/ }
+end
\ No newline at end of file
diff --git a/spec/mailers/comment_mailer_spec.rb b/spec/mailers/comment_mailer_spec.rb
deleted file mode 100644
index 3a70eef..0000000
--- a/spec/mailers/comment_mailer_spec.rb
+++ /dev/null
@@ -1,34 +0,0 @@
-require "rails_helper"
-
-describe CommentMailer do
- describe "#send_new_comment_notification" do
- let!(:comment) { FactoryGirl.create(:comment) }
- let(:mail) { CommentMailer.send_notification_email(comment.id) }
-
- it "renders the subject" do
- expect(mail.subject).to eql('Notification comment')
- end
-
- it "renders the receiver email" do
- expect(mail.to).to eql([comment.parent.user.email])
- end
-
- it "renders the sender email" do
- expect(mail.from).to eql(["no-reply@rubygamedev.com"])
- end
-
- it "assigns @name" do
- expect(mail.body.encoded).to match(comment.parent.user.username)
- end
-
- it "assigns @confirmation_url" do
- expect(mail.body.encoded).to match(
- "https://www.rubygamedev.com/posts/#{comment.parent_id}")
- end
-
- it "render the body email" do
- expect(comment.body).to match(
- "hello this is the body of comment")
- end
- end
-end
diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb
index 481f1d4..5ac5b07 100644
--- a/spec/rails_helper.rb
+++ b/spec/rails_helper.rb
@@ -54,4 +54,12 @@
config.include Capybara::DSL
config.include Support::Features
+
+ Capybara.register_driver :webkit do |app|
+ Capybara::Selenium::Driver.new(app, :browser => :chrome)
+ end
+
+ Capybara.javascript_driver = :webkit
+
end
+
<%= comment.user.username %> -
- <%= simple_format comment.body %> ++ + <%= comment.user.username %> + - +
+ <%= simple_format comment.body %>