Commit 5bdd9ab 1 parent 2e37587 commit 5bdd9ab Copy full SHA for 5bdd9ab
File tree 1 file changed +3
-3
lines changed
spec/models/feedback_reporters
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 114
114
end
115
115
end
116
116
117
- context "if the report has an empty URL " do
117
+ context "if the report has an empty referer " do
118
118
before do
119
119
allow ( subject ) . to receive ( :referer ) . and_return ( "" )
120
120
end
124
124
end
125
125
end
126
126
127
- context "if the reporter has a very long referer URL " do
127
+ context "if the reporter has a very long referer" do
128
128
before do
129
129
allow ( subject ) . to receive ( :referer ) . and_return ( "a" * 2081 )
130
130
end
131
131
132
- it "truncates the URL to 2080 characters" do
132
+ it "truncates the referer to 2080 characters" do
133
133
expect ( subject . report_attributes . dig ( "cf" , "cf_ticket_url" ) . length ) . to eq ( 2080 )
134
134
end
135
135
end
You can’t perform that action at this time.
0 commit comments