<commit_before># encoding: utf-8

require "spec_helper"

describe ApplicationHelper do
  describe "#facebook_oauth_url" do
    let(:redirect_url) { "http://example.com/foo" }
    subject { helper.facebook_oauth_url(redirect_url) }
    it do
      is_expected.to eq(
        "https://www.facebook.com/dialog/oauth?client_id=" +
          "853251131352622" +
          "&redirect_uri=http://example.com/foo" +
          "&scope=email"
      )
    end
  end
<commit_msg>Set facebook_app_id in ApplicationHelper spec<commit_after># encoding: utf-8

require "spec_helper"

describe ApplicationHelper do
  describe "#facebook_oauth_url" do
    let(:redirect_url) { "http://example.com/foo" }
    before { Sugar.config.facebook_app_id = "123" }
    subject { helper.facebook_oauth_url(redirect_url) }
    it do
      is_expected.to eq(
        "https://www.facebook.com/dialog/oauth?client_id=123" +
          "&redirect_uri=http://example.com/foo" +
          "&scope=email"
      )
    end
  end

{'fraction_non_alphanumeric': 0.12512613521695257, 'fraction_numerical': 0.02320887991927346, 'mean_word_length': 2.9839357429718874, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1444637', 'n_tokens_mistral': 349, 'n_tokens_neox': 332, 'n_words': 56}