GitHub PullRequestReviewCommentEvent at 2014-04-25 22:09:35
Repository: promdash
Actor: grobie
Payload: {"comment":{"url":"https://api.github.com/repos/prometheus/promdash/pulls/comments/12018179","id":12018179,"diff_hunk":"@@ -0,0 +1,137 @@\n+require 'spec_helper'\n+\n+feature \"Dashboard#show\", js: true do\n+  describe \"interacting with graphs\" do\n+    before(:each) do\n+      @server = Server.create! name: \"prometheus\", url: \"http://localhost:#{Capybara.server_port}/\"\n+      @dashboard =\n+        Dashboard.create! name: \"Sample Dash\", slug: \"sample-dash\", dashboard_json: File.read('./spec/support/sample_json/dashboard_json')\n+      visit dashboard_slug_path @dashboard.slug\n+    end\n+\n+    it \"graph should exist\" do\n+      expect(page).to have_selector '.graph_chart > svg'\n+    end\n+\n+    describe \"the legend\" do\n+      it \"should show the legend\" do\n+        expect(page).to have_selector '.line'\n+      end\n+\n+      it \"should be able to turn off the legend\" do\n+        expect(page).to have_selector '.line'\n+        open_tab 'Legend Settings'\n+        choose 'never'\n+        expect(page).to have_no_selector '.line'\n+      end\n+\n+      describe \"legend format string\" do\n+        before(:each) { open_tab 'Legend Settings' }\n+        let(:legend_string) { model_element 'graph.legendFormatString' }\n+\n+        it \"constants\" do\n+          legend_string.set 'Hello'\n+          within '.graph_chart' do\n+            expect(page).to have_content 'Hello'\n+          end\n+        end","path":"spec/features/graph_spec.rb","position":37,"original_position":37,"commit_id":"edeeaeefb4e774609d283d97795d4e8ec798c867","original_commit_id":"edeeaeefb4e774609d283d97795d4e8ec798c867","user":{"login":"grobie","id":3432,"avatar_url":"https://avatars.githubusercontent.com/u/3432?","gravatar_id":"90f0e512184d202445616446467a3da9","url":"https://api.github.com/users/grobie","html_url":"https://github.com/grobie","followers_url":"https://api.github.com/users/grobie/followers","following_url":"https://api.github.com/users/grobie/following{/other_user}","gists_url":"https://api.github.com/users/grobie/gists{/gist_id}","starred_url":"https://api.github.com/users/grobie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grobie/subscriptions","organizations_url":"https://api.github.com/users/grobie/orgs","repos_url":"https://api.github.com/users/grobie/repos","events_url":"https://api.github.com/users/grobie/events{/privacy}","received_events_url":"https://api.github.com/users/grobie/received_events","type":"User","site_admin":false},"body":"Wow, yes. Very cool!","created_at":"2014-04-25T22:09:35Z","updated_at":"2014-04-25T22:09:35Z","html_url":"https://github.com/prometheus/promdash/pull/144#discussion_r12018179","pull_request_url":"https://api.github.com/repos/prometheus/promdash/pulls/144","_links":{"self":{"href":"https://api.github.com/repos/prometheus/promdash/pulls/comments/12018179"},"html":{"href":"https://github.com/prometheus/promdash/pull/144#discussion_r12018179"},"pull_request":{"href":"https://api.github.com/repos/prometheus/promdash/pulls/144"}}}}