Commit 958def5

mo khan <mo@mokhan.ca>
2017-02-18 23:05:25
add gyms text.
1 parent 3269e13
Changed files (3)
app
views
config
locales
spec
app/views/application/_navigation.html.erb
@@ -4,6 +4,7 @@
       <%= link_to t("app"), root_path, class: 'nav-item is-brand' %>
       <%= link_to t(".home"), dashboard_path, class: 'nav-item' %>
       <%= link_to t(".workouts"), workouts_path, class: 'nav-item' %>
+      <%= link_to t(".gyms"), gyms_path, class: 'nav-item' %>
       <%= link_to t(".blog"), "http://slog.stronglifters.com", class: 'nav-item' %>
     </div>
     <div class="nav-center">
config/locales/en.yml
@@ -45,6 +45,7 @@ en:
   application:
     navigation:
       blog: Blog
+      gyms: Gyms
       home: Home
       log_out: Log out
       profile: Profile
spec/features/gyms_spec.rb
@@ -16,13 +16,6 @@ feature "Gyms", type: :feature do
       create(:gym, name: "nait", location: create(:edmonton))
     end
 
-    it "loads the gyms closest to you" do
-      subject.visit_page
-      expect(subject).to be_on_page
-      expect(subject).to have_content(calgary_gym.name)
-      expect(subject).not_to have_content(edmonton_gym.name)
-    end
-
     it "loads all the gyms" do
       user_session.location.update_attributes(latitude: 0.0, longitude: 0.0)
       subject.visit_page