Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix "Refused to execute script" error and undefined method regexp_source exception #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lib/cucumber_characteristics/profile_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def step_profiles
step_profiles[step_name][:total_count] += 1
step_profiles[step_name][s.status][:feature_location][feature_location] ||= []
next unless s.status != :undefined
step_profiles[step_name][:regexp] = s.step_match.step_definition.regexp_source
regexp = s.step_match.step_definition.try :regexp_source
regexp ||= s.step_match.step_definition.try :expression
step_profiles[step_name][:regexp] = regexp.to_s
if s.status == :passed
step_profiles[step_name][s.status][:feature_location][feature_location] << s.step_match.duration
end
Expand Down
2 changes: 1 addition & 1 deletion lib/cucumber_characteristics/view/step_report.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@

%script{:src => "https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"}
%script{:src => "http://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"}
%script{:src => "https://raw.githubusercontent.com/christianbach/tablesorter/master/jquery.tablesorter.min.js"}
%script{:src => "https://cdn.rawgit.com/christianbach/tablesorter/master/jquery.tablesorter.min.js"}
:javascript
$(document).ready(function()
{
Expand Down